package com.halflife.query;

import org.mybatis.spring.support.SqlSessionDaoSupport;

import java.util.List;

/**
 * Created by zhaoyf on 2018/9/2.
 */
public interface DaoSupport {
    public void insert(QueryHelper queryHelper);

    public void insert(String method,Object param);

    public void delete(QueryHelper queryHelper);

    public void delete(String method,Object o);

    public void update(QueryHelper queryHelper);

    public void update(String method,Object o);

    public<T> T select(QueryHelper queryHelper);

    public<T> T select(String method,Object o);

    public<T> List<T> selectList(QueryHelper queryHelper);

    public<T> List<T> selectList(String method,Object o);

    public<T> List<T> getPageData(int pageNum,int pageSize,QueryHelper queryHelper);
}
